<%@page import="kr.co.infovil.zipcode.entity.ZipcodeDTO"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html;  charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	/*     

	 String type = null;
	 String subPage = null;
	 String bodyTag = "<body>";

	 if ( action.equals( "zipcode.search.dong.ui" ) ) {

	 type = "D";
	 subPage = "/jsp/zipcode/composite/search/dong.jsp";
	 bodyTag = "<body onLoad=\"window.document.ZipcodeSearchForm.dong.focus();\">";

	 } else if ( action.equals( "zipcode.search.dong.do" ) ) {

	 type = "D";
	 subPage = "/jsp/zipcode/composite/search/dong.jsp";
	 bodyTag = "<body onLoad=\"window.document.ZipcodeSearchForm.dong.focus();\">";

	 } else if ( action.equals( "zipcode.search.area.ui" ) ) {

	 type = "A";
	 subPage = "/jsp/zipcode/composite/search/area.jsp";
	 bodyTag = "<body onLoad=\"window.document.ZipcodeSearchForm.sido.focus();\">";

	 } else if ( action.equals( "zipcode.search.area.do" ) ) {

	 type = "A";
	 subPage = "/jsp/zipcode/composite/search/area.jsp";
	 bodyTag = "<body onLoad=\"window.document.ZipcodeSearchForm.sido.focus();\">";

	 } // end if~else if */
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>:::::우편번호 검색:::::</title>
<script type="text/javascript">
function ConfirmAddressSearch( zipcode, address ) {

	 var openerForms = opener.document.forms[0];
	 var zipcodeIndex = 16;
	 openerForms.elements[ zipcodeIndex ].value = zipcode.substring( 0, 3 );
    openerForms.elements[ zipcodeIndex + 1 ].value = zipcode.substring( 4, 7 );
    openerForms.elements[ zipcodeIndex + 2 ].value = address;
    openerForms.elements[ zipcodeIndex + 3 ].focus();
	 window.close();
}
</script>
</head>

<body onLoad="window.document.ZipcodeSearchForm.dong.focus();"
	style="background-color: white">

	<table width="100%" height="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td>

				<table cellspacing="0" cellpadding="0">
					<tr>
						<td class="td_default" width="100" align="right">검색유형:&nbsp;</td>
						<td class="td_default">ㅁ동(읍/면/리)로 검색</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="20"></td>
		</tr>

		<tr>
			<td height="100%" valign="top">
			   <jsp:include page="composite/dong.jsp" flush="true" />
			</td>
		</tr>
	</table>
</body>
</html>